var mongoose = require('mongoose')
//mongoose.connect('mongodb://localhost:27017/Ants')
var Schema = mongoose.Schema

var userSchema = mongoose.Schema({
    username:{type:String,unique:true},
    password:String,
    email:String,
    qq:Number,
    mobilePhone:String,
    introduction : String,
    updateAt:{type:Date,default:Date.now()},
    createAt:{type:Date,default:Date.now()}
 
})



 module.exports=mongoose.model('User',userSchema)//发布为model